package com.pentofab.payrollmanagement.dao.model;

import java.util.ArrayList;

public class HolidaysDetail {
	
	private String date; 
	private String reason;
	
    
    public HolidaysDetail(String date, String reason) {
    	
    	this.date = date;
    	this.reason =reason;
	}


	public static ArrayList<HolidaysDetail> getLeaveDetailList(
			ArrayList<Holiday> holidays) {
    	
		ArrayList<HolidaysDetail> detail = new ArrayList<HolidaysDetail>();
		
		for (int i = 0; i < holidays.size(); i++) {
			Holiday cur = holidays.get(i);
			detail.add(new HolidaysDetail(cur.getDate(),cur.getReason()));
		}
		
		return detail;

	}


	public String getDate() {
		return date;
	}


	public void setDate(String date) {
		this.date = date;
	}


	public String getReason() {
		return reason;
	}


	public void setReason(String reason) {
		this.reason = reason;
	}
	
}
